/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.football.lottery.services;

import com.football.lottery.dao.FootballLotteryDAOImpl;
import com.football.lottery.obj.FootballLottery;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author I am god
 */
public class DAOServices
{
  private FootballLotteryDAOImpl daoImpl;
  
  public DAOServices()
  {
    daoImpl = new FootballLotteryDAOImpl();
  }
  
  public List getAllPeriodNos()
  {
    return this.daoImpl.getAllPeriodNo();
  }
  
  public List getAllFootballLottery()
  {
    return this.daoImpl.getAllFootballLottery();
  }
  
  public FootballLottery getFootballLotteryByPeriodNo(int periodNo)
  {
    return this.daoImpl.getFootballLotteryByPeriodNO(periodNo);
  }
  
  public boolean saveFootballLottery(List fblList)
  {
    return this.daoImpl.insertFootballLottery(fblList);
  }

  public boolean updateGames(List newGameItems)
  {
    return this.daoImpl.updateGames(newGameItems);
  }

  public void updateBetAmount(Integer periodNo, double betAmount)
  {
    this.daoImpl.updateBetAmount(periodNo, betAmount);
  }
  
  public boolean addRecommendedItems(List items)
  {
    return this.daoImpl.addRecommendedItems(items);
  }
  
  public boolean updateLotteryResult(Map resultMap)
  {
    return this.daoImpl.updateLotteryResult(resultMap);
  }

}
